changed methods to post attributes