set can now accept object as parametar