sorry for the long time taken to reply but I found out I apparently did some things in a wrong order that caused the problem