Still work in progress. fixed datatype mismatch issue.