solved the problem by writing a noparam constructor...