Working but does not efficient