this is my bad attempt on coding