basic prototype working
fixed pg