found out what was the problem with the first and second problem. i knew there was something wrong.
fixed the third and fourth problem. finally.