better way to do that..