fix'ed variable inheretence