getData used in bind method